package com.chb.decorator;

/**
 * @author chihb
 * @create-time 2024/10/24 14:40
 * @description
 */
public class Egg extends Decorator{
    public Egg(ABatterCake aBatterCake) {
        super(aBatterCake);
    }

    @Override
    protected String getDesc() {
        return super.getDesc()+" 加一个煎蛋";
    }

    @Override
    protected int cost() {
        return super.cost()+2;
    }
}
